home *** CD-ROM | disk | FTP | other *** search
/ Aminet 45 / Aminet 45 (2001)(GTI - Schatztruhe)[!][Oct 2001].iso / Aminet / dev / c / vbcc.lha / vbcc / targets / m68k-amigaos / include / assert.h next >
C/C++ Source or Header  |  2001-04-28  |  320b  |  16 lines

  1. #pragma begin_header
  2. #ifndef __ASSERT_H
  3. #define __ASSERT_H 1
  4. #endif
  5.  
  6. #undef assert
  7.  
  8. extern int __aprintf(const char *,...);
  9.  
  10. #ifndef NDEBUG
  11. #define assert(exp) ((void)((exp)?0:(__aprintf("Assertion failed: file %s, line %d\n",__FILE__,__LINE__),abort(),0)))
  12. #else
  13. #define assert(exp) ((void)0)
  14. #endif
  15. #pragma end_header
  16.